<template>
  <div>
    <el-tabs v-model="activeName" type="border-card" tab-position="top" @tab-click="tabClick">
      <el-tab-pane name="date" label="审核时间设置">
        <date ref="date"></date>
      </el-tab-pane>
      <el-tab-pane name="company" label="咨询机构设置">
        <company ref="company"></company>
      </el-tab-pane>
      <el-tab-pane name="unit" label="填报单位设置">
        <unit ref="unit"></unit>
      </el-tab-pane>
      <el-tab-pane name="belong" label="机构归属设置">
        <belong ref="belong"></belong>
      </el-tab-pane>
      <!-- <el-tab-pane label="审核时间" name="审核报告">

      </el-tab-pane> -->
    </el-tabs>
  </div>
</template>
<script>
import Belong from './belong.vue';
import Company from './company.vue';
import Date from './date.vue';
import Unit from './unit.vue';
export default {
  name: 'OpearPart',
  components: {
    Date, Company, Unit,
    Belong

  },
  props: {

  },
  data () {
    return {
      activeName: 'date'
    }
  },
  created () {

  },
  mounted () {
    this.init()
  },
  methods: {
    init () {

    },
    tabClick (tab) {
      if (tab.name === 'date') {
        this.$refs.date.init()
      } else if (tab.name === 'company') {
        this.$refs.company.init()
      } else if (tab.name === 'unit') {
        this.$refs.unit.init()
      } else if (tab.name === 'belong') {
        this.$refs.belong.init()
      }
    }
  },
  computed: {

  }
}
</script>
<style lang='scss' scoped>
</style>
